import axios from 'axios';

export const  getAsyncInfo = async () => {
    let result = await axios({
        method:'get',
        url:'/api/posts',
        //get方式
        // params：{}
    })
    return result.data;
}